<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
                      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:fragment xmlns="http://www.w3.org/1999/xhtml"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:a4j="http://richfaces.org/a4j">
	<a4j:outputPanel ajaxRendered="true">
		<h:form>
			<rich:dataTable
				value="#{alaAction.resultList}"
				var="_ala"
				rows="10"
				id="alaDataTableId"
				rendered="#{!empty alaAction.resultList}">
				<rich:column>
					<f:facet name="header">#{messages['label.identificador']}</f:facet>
					<a4j:commandLink 
						value="#{_ala.id}" 
						action="#{alaAction.setEntity(_ala)}"/>
				</rich:column>
				<rich:column>
					<f:facet name="header">#{messages['label.descricao']}</f:facet>
					<h:outputText 
						value="#{_ala.descricao}"/> 
				</rich:column>
				<rich:column>
					<f:facet name="header">#{messages['label.jornada.trabalho']}</f:facet>
					<h:outputText 
						value="#{_ala.jornadaTrabalho.descricao}"/> 
				</rich:column>
			</rich:dataTable>
		</h:form>
	</a4j:outputPanel>
</ui:fragment>
